package cn.com.cifi.mars.web.action.sys;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import cn.com.cifi.mars.bean.vo.sys.rsp.PositionGroupAuthVo;
import cn.com.cifi.mars.common.base.BaseAction;
import cn.com.cifi.mars.common.bean.R;
import cn.com.cifi.mars.service.IdmPositionGroupService;
@RestController
public class PositionGroupController extends BaseAction implements IPositionGroupController{
	
	@Autowired
	private IdmPositionGroupService idmPositionGroupService;

	/**
	 * 权限管理--岗位组
	 */
	@Override
	public R<PositionGroupAuthVo> getPotGroupAuthPage(String apiVersion, String current, String pageSize, String jobDefinitionsName,String jobDefinitionsId) {
		return ok(idmPositionGroupService.queryPotGroupAuthPage(current,pageSize,jobDefinitionsName,jobDefinitionsId));
	}
	
	/**
	 * 查询岗位组存在供销存的数据
	 */
	@Override
	public R<String> getPositionGroupName(String apiVersion) {
		return ok(idmPositionGroupService.getPositionGroupName());
	}
	

}
